import http from '../http'
///价格体系

export const getPriceApi = (params ={}) => http({//获取价格体系数据
    url: "/priceSystem/selectByPage",
    method: "post",
    params
})

export const getPriceCount=()=>http({
    url:"/priceSystem/selectAll",
    method:"post",
})

export const delPriceApi = (params ={}) => http({//删除
    url: "/priceSystem/delete",
    method: "post",
    params
})

export const getOncePriceApi = (data={}) => http({//单个数据
    url: "/",
    method: "post",
    data
})

export const addEditPriceApi = (data={}) => http({ //保存编辑数据
    url: "/priceSystem/update",
    method: "post",
    data
})

export const addPriceIdApi = (data={}) => http({//添加
    url: "/priceSystem/insert",
    method: "post",
    data
})